from django import forms


# 用作登录的用户form
class UserForm(forms.Form):
    username = forms.CharField(label='username', max_length=20)
    password = forms.CharField(label='password', max_length=20)


# 用作修改密码的用户form
class ResetForm(forms.Form):
    username = forms.CharField(label='username', max_length=20)
    old_password = forms.CharField(label='old_password', max_length=20)
    new_password1 = forms.CharField(label='new_password1', max_length=20)
    new_password2 = forms.CharField(label='new_password2', max_length=20)
